<?php


namespace plugin\colewechat\app\service;


class AccountService extends BaseService
{
    public function getUserInfoByCode($code)
    {
        $oauth = $this->getApp()->oauth;
        $user = $oauth->userFromCode($code);
        return $user;
    }


}